/*
 * Copyright (c) Honor Device Co., Ltd. 2021-2023. All rights reserved.
 */

package com.wangfugui.mybatisplus.common;

/**
 * 持久层错误码常量类
 */
public enum DalErrorCode implements ErrorMessage {

    QUERY_F(010,"查询不成功"),

    INSERT_F(020,"插入不成功"),

    UPDATE_F(030,"更新不成功"),

    DELETE_F(040,"删除不成功"),

    ;
    private Integer code;
    private String message;

    DalErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
